PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-05-17 10:20:38.749348+00:00 (UTC)
In US/Central Time, this is 2024-05-17 05:20:38.749348-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../../_images/ed300747e235b63d733eed41c8b503cbe8341a180b12aa117436a6166ba13fe3.png
We are just generating a random time serie here.
../../_images/6fe25d55d54df3d2f726a93a0b1ee6f140160c9b9c79d07726f1da12eec0aab0.png
../../_images/7d22275dcfa80e0e447f2dd76ce125797d71c7f7f6a9e693aa3ee8d633db6463.png